class LibraryTagLib {

    def library = null;

     def getNextBook = {
        if (library == null) {
            library = new LibraryMain();
        }
        out << library.getNextBook(session.login, session.password)
     }

    def doSearch = { search ->
       // out << library.searchBook(search)
        //out << "http://tomcat.embedded.ufcg.edu.br/library/wSRestLibrary/searchBook?idSession=${session.idSession}&" + search
    }

    def libraryLogout = {
        println "libraryLogout"
    }
}
